<?php

namespace App\Models;

class OrderRefundModel extends RbhBaseModel
{
    protected $table = 'df_order_refund';

    protected $guarded = [];

    /**
     * 获取退款状态描述
     * @param $status
     * @return string
     */
    public static function getRefundStatusText($status): string
    {
        return match (intval($status)) {
            0    => '正常',
            1    => '申请退货',
            2    => '同意退货',
            3    => '退款中',
            4    => '已退款',
            5    => '拒绝退款',
            default => '未定义'
        };
    }
}
